package org.csc.sss.datacore.constant;

/**
 * 正则常量类
 * Created by Jin on 2017/7/21.
 */
public class RegexpConstant {

    // 手机号正则表达式
    public static final String PHONE_REGEX = "\\d{11}";
    // 银行卡号正则表达式
    public static final String BANK_CARD_REGEX = "[0-9]{13,19}";
    // 订单号正则表达式
    public static final String ORDER_ID_REGEX = "[0-9a-zA-Z]{1,32}";
    // 短信验证码正则表达式
    public static final String SMS_CODE_REGEX = "\\d{6}";
    // 18位身份证号正则表达式
    public static final String ID_CORD_REGEX = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)(?!.*[^0-9X])$";
    // 系统通用ID规则
    public static final String ID_COMMON_REGEX = "^[0-9a-zA-Z]{10,32}$";
    // 邮箱正则表达式
    public static final String MAIL_REGEX = "^\\s*\\w+(?:\\.{0,1}[\\w-]+)*@[a-zA-Z0-9]+(?:[-.][a-zA-Z0-9]+)*\\.[a-zA-Z]+\\s*$";
    //日期
    public static final String DATE_REGEX = "(|[0-9]{4}\\-[0-9]{2}\\-[0-9]{2})";
    // http地址
    public static final String HTTP_URL_REGEX = "^https?://.*";

    
    private RegexpConstant() {
    }
}
